﻿using HuaweiCloud.Dotnet.Samples.Common;
using Microsoft.EntityFrameworkCore;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Entities
{
    [Index(nameof(UserId))]
    public class Points : BaseEntity<Guid>
    {
        public Guid? UserId { get; set; }
        public int Scores { get; set; }

        public Points(Guid id, Guid? userId, int scores)
        {
            Id = id;
            UserId = userId;
            Scores = scores;
        }
    }
}
